home *** CD-ROM | disk | FTP | other *** search
- ;OCL{{{}}}
- ;OCL{{{ comments
- ; this macro uses the environement-variable $GETSELECTION to get the
- ; window-system-dependent selection and puts it into the text.
- ;OCL}}}
- @if-using not(ocl-file-xsel)
- @use (ocl-file-xsel)
- ;OCL{{{ get-x-selection
- ( deffun get-x-selection
- ( if not(in-prompt)
- ( local ( force-bourne-shell )
- ( set force-bourne-shell true
- pipe-from-command "$GETSELECTION newline-and-indent
- )
- )
- fi
- )
- )
- ;OCL}}}
- @fi
-